package com.example.smart.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "菜单")
public class Menu {
    @Schema(description = "菜单编号")
    @TableId(type = IdType.AUTO)
    private Integer menuId;
    @Schema(description = "父级菜单，一级菜单编号")
    private Integer menuParentId;
    @Schema(description = "菜单名称")
    private String menuName;
    @Schema(description = "菜单路径")
    private String menuPath;
    @Schema(description = "菜单授权")
    private String menuPerms;
    @Schema(description = "菜单类型（0：目录   1：菜单  2：按钮）")
    private String menuType;
    @Schema(description = "菜单图标")
    private String menuIcon;
    @Schema(description = "菜单排序")
    private Integer orderNum;
    @Schema(description = "显示状态（0：显示，1：隐藏）")
    //@TableLogic(value = "0", delval = "1")
    private Integer menuVisible;
    @Schema(description = "菜单状态（0：正常，1：停用）")
    //@TableLogic(value = "0", delval = "1")
    private Integer menuStatus;
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @Schema(description = "是否删除（是:1，否:0）")
    @TableLogic(value = "0", delval = "1")
    private Integer menuIsdelete;
}
